# first check if we can create the usual shit.
cgcreate -g cpu:/cpurandom
if [ $! -ne 0 ]; then
	echo maybe this thing is cgroup2 only.
	target=$(mount | grep -Eo "cgroup2" | wc -c)
	if [ $target -gt 5 ]; then
		echo yeah maybe we are lucky.
	else
		echo shit happended. no shit to try then.
	fi
else
	echo we will try to use cgroup_v1 instead of cgroup_v2.
	bash create_cgroup_10.sh
fi
